<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>逻辑运算符</title>
</head>
<body>
<pre>
<script type="text/javascript">
	var a=2,b=3,result;
	document.writeln("a=2,b=3");
	document.write("a&lt;b&&a&lt;=b= ");result=a<b&&a<=b;document.writeln(result);
	document.write("a&lt;b&&a&gt;b= ");result=a<b&&a>b;document.writeln(result);
	document.write("a&lt;b||a&gt;b= ");result=a<b||a>b;document.writeln(result);
	document.write("a&gt;b&&a&gt;=b= ");result=a>b||a>=b;document.writeln(result);
	document.write("!(a&lt;b)= ");result=!(a<b);document.writeln(result);
	document.write("!(a&gt;b)= ");result=!(a>b);document.writeln(result);
</script>
</pre>
</body>
</html>